import java.util.ArrayList;
import java.util.Scanner;

public class Text {
    public static void main(String[] args) {

        int i;
        Scanner scanner = new Scanner(System.in);
        i = scanner.nextInt();
        switch (i){
            case 0 -> {
                System.out.println(1);
            }
            case 1 -> {
                System.out.println(2);
            }
            default -> {
                System.out.println(3);
            }
        }
        ArrayList<Integer> list = new ArrayList<>();

    }


}
